package com.bdqn.wang.service.impl;

import com.bdqn.wang.dao.OrderDao;
import com.bdqn.wang.dao.impl.OrderDaoImpl;
import com.bdqn.wang.pojo.Order;
import com.bdqn.wang.pojo.OrderAll;
import com.bdqn.wang.service.OrderService;

import java.util.List;
public class OrderServiceImpl implements OrderService {
    OrderDao orderDao = new OrderDaoImpl();
    @Override
    public List<Order> getAll() {
        return orderDao.getAll();
    }

    @Override
    public int add(Order order) {
        return orderDao.add(order);
    }

    @Override
    public int del(int id) {
        return orderDao.del(id);
    }

    @Override
    public int update(Order order) {
        return orderDao.update(order);
    }

    @Override
    public Order getOrderByid(int id) {
        return orderDao.getOrderByid(id);
    }

    @Override
    public Order getOrderXiang(int xiang) {
        return orderDao.getOrderXiang(xiang);
    }


}
